package com.accp.vehiclecare.action.syhaction;

import com.accp.vehiclecare.biz.syhbiz.SyhArvehicleBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("api/a")
public class wqclAction {

    @Autowired
    private SyhArvehicleBiz biz;

    @GetMapping
    private Map<String,Object> modify(Double km,Integer id){
        Map<String,Object> m = new HashMap<>();
        biz.modifyKm(km, id);
        m.put("code",200);
        m.put("msg","ok");
        return m;
    }
}
